package net.zhengxinyun.performance.service.exam.examClass;


import net.zhengxinyun.performance.entity.ExamIndex;
import net.zhengxinyun.performance.filter.ExamIndexFilter;
import net.zhengxinyun.performance.mapper.exam.examClass.ExamIndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class ExamIndexServiceImpl implements ExamIndexService {

    @Autowired
    private ExamIndexMapper examIndexMapper;

    @Override
    public List<ExamIndexFilter> query(ExamIndexFilter filter) {
        return examIndexMapper.query(filter);
    }

    @Override
    public int queryForCount(ExamIndexFilter filter) {
        return examIndexMapper.queryForCount(filter);
    }

    @Override
    public ExamIndex selectByPrimaryKey(Long id) {
        return examIndexMapper.selectByPrimaryKey(id);
    }

    @Override
    public int deleteByPrimaryKey(Long ind) {
        return examIndexMapper.deleteByPrimaryKey(ind);
    }

    @Override
    public int insert(ExamIndex examIndex) {
        return examIndexMapper.insert(examIndex);
    }

    @Override
    public int insertSelective(ExamIndex examIndex) {
        return examIndexMapper.insertSelective(examIndex);
    }

    @Override
    public int updateByPrimaryKeySelective(ExamIndex index) {
        return examIndexMapper.updateByPrimaryKeySelective(index);
    }

    @Override
    public int updateByPrimaryKey(ExamIndex examIndex) {
        return examIndexMapper.updateByPrimaryKey(examIndex);
    }
}
